package com.itqf.service.impl;

import com.itqf.entity.SysUsers;
import com.itqf.mapper.SysUsersMapper;
import com.itqf.service.SysUsersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/20
 * @Time: 下午3:37
 */
@Service
public class SysUsersServiceImpl implements SysUsersService {

    @Resource
    private SysUsersMapper  sysUsersMapper;

    @Override
    public SysUsers login(String username) {

        return sysUsersMapper.selectByUsername(username);
    }

    @Override
    public List<String> findRolesByUId(Integer id) {
        return sysUsersMapper.findRolesByUId(id);
    }

    @Override
    public List<String> findPermsByUId(Integer id) {
        return sysUsersMapper.findPermsByUId(id);
    }
}
